<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<header class="navbarHeader navbarStatic" th:fragment="top_bar">
    <div class="topHeader" th:if="${student}">
        <div class="headerLogo"><a href="/"><img style="width:150px;" src="/web/image/homepage/Page2.png"></a></div>
        <div class="headerRight">
            <div class="createArticle-box">
                <a th:if="${#lists.contains(authList,student.id)}" href="/admin/index" target="_blank" class="btn btn-default creatArticle" style="margin-right: 28px;">登陆后台</a>
               <!--  <a href="/s/f/weixin" target="_blank" class="btn btn-default creatArticle" style="margin-right: 28px;">登陆后台</a> -->
                <!-- <a href="../video/creatVideo.html" target="_blank" class="btn btn-default creatArticle">视频创作</a> -->
            </div>

            <a href="/web/message/my_message_list" class="userMailBox" id="userMailBox">
                <img src="/web/image/InfoPage/envelope.png">
                <p class="userMailNumber" style="display: none;"></p>
            </a>
            <span class="userInfoName" id="userInfoName"><a href="/web/home/index" th:text="${student.name}"></a></span>
            <span class="spanIcon"></span>
            <a href="/web/logout" class="userLogout" id="userLogOut">退出</a>
        </div>
    </div>
    <div class="topHeader" th:if="${student==null}">
        <div class="headerLogo"><a href="/"><img style="width:150px;" src="/web/image/homepage/Page2.png"></a></div>
        <!--登录按钮-->
        <div class="headerRight">
            <a href="/" class="userLoginBtn">注册</a>
        </div>
    </div>
<!--小人只在首页显示 start*-->
<div id="spig" class="spig">
    <div id="message">正在加载中……</div>
    <div id="mumu" class="mumu"></div>
</div>
<!--小人end*-->

    <script th:src="@{/web/vendor/jquery/dist/jquery.js(v=${vtimestamp})}"></script>
    <script type="text/javascript" th:src="@{/web/js/header/init.js(v=${vtimestamp})}"></script>
    <script type="text/javascript" th:src="@{/web/js/spig.js(v=${vtimestamp})}"></script>
    <link rel="stylesheet" th:href="@{/web/css/spigPet.css(v=${vtimestamp})}">
	<script type="text/javascript">
	var isindex = true;
	var visitor = true;
	</script>
	    
    
</header>

</html>